package com.un.ebs.invoice.domain;

import java.util.Date;

import com.un.ebs.invoice.enums.InvoiceTypeEnum;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.*;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.springframework.stereotype.Component;
import lombok.Data;
import com.un.ebs.core.metadata.DbField;

/**
 * (InvoiceCashNoteItemExt)表实体类
 *
 * @author liubo
 * @since 2020-12-06 20:52:59
 */
@Data
@Component
@TableName("v_invoice_cash_note_item_ext")
@SuppressWarnings("serial")
public class InvoiceCashNoteItemExt extends Model<InvoiceCashNoteItemExt> {

                
    @DbField(name = "id",  length = 40 , precision = 0)
    private String id;
                
    @DbField(name = "invoice_cash_note_id",  length = 40 , precision = 0)
    private String invoiceCashNoteId;
                
    @DbField(name = "cash_money",  length = 18 , precision = 2)
    private Double cashMoney;
                
    @DbField(name = "cash_time",  length = -1 , precision = 0)
    private Date cashTime;
        
    @TableField(fill = FieldFill.INSERT)            
    @DbField(name = "create_time",  length = -1 , precision = 0)
    private Date createTime;
        
    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @DbField(name = "personnel_name", length = 100, precision = 0)
    private String personnelName;

    @DbField(name = "contract_code", length = 20, precision = 0)
    private String contractCode;

    @DbField(name = "invoice_type", length = -1, precision = 0)
    private InvoiceTypeEnum invoiceType;

    @DbField(name = "source_money", length = 18, precision = 4)
    private Double sourceMoney;

    @DbField(name = "tax_money", length = 18, precision = 4)
    private Double taxMoney;

    @DbField(name = "invoice_note_id", length = 40, precision = 0)
    private String invoiceNoteId;


}